home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / Draw / Sources / Constant.h < prev    next >
Encoding:
Text File  |  1996-09-17  |  1.5 KB  |  61 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                Constant.h
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Author:                Henri Lamiraux
  7. //
  8. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  9. //
  10. //========================================================================================
  11.  
  12. #ifndef CONSTANT_H
  13. #define CONSTANT_H
  14.  
  15. // ----- OS Includes -----
  16.  
  17. #ifndef FWMNUITM_H
  18. #include "FWMnuItm.h"
  19. #endif
  20.  
  21. #ifndef FWFXMATH_H
  22. #include "FWFxMath.h"
  23. #endif
  24.  
  25. // ----- OpenDoc Includes -----
  26.  
  27. #ifndef FWODTYPS_H
  28. #include "FWODTyps.h"
  29. #endif
  30.  
  31. //========================================================================================
  32. //    Constants
  33. //========================================================================================
  34.  
  35. // ----- Tool -----
  36. const unsigned short kSelectTool     = 1;
  37. const unsigned short kLine             = 2; 
  38. const unsigned short kRectangle     = 3; 
  39. const unsigned short kOval             = 4; 
  40. const unsigned short kRoundRect     = 5;
  41. const unsigned short kText             = 6;
  42.  
  43. // ----- Corner -----
  44. const short kInTopLeftCorner = 1;
  45. const short kInBottomRightCorner = kInTopLeftCorner + 1;
  46. const short kInTopRightCorner = kInBottomRightCorner + 1;
  47. const short kInBottomLeftCorner = kInTopRightCorner + 1;
  48.  
  49. // ----- Shape rendering -----
  50. const unsigned short kFrameOnly = 1;
  51. const unsigned short kFillOnly = 2;
  52. const unsigned short kFillFrame = 3;
  53.  
  54. // ----- Semantic Terminology -----
  55.  
  56. const ODDescType kShapeClass = 'DrSh';
  57.  
  58. const FW_Fixed kRulerWidth = FW_IntToFixed(15);    
  59.  
  60. #endif
  61.